package baiqitun.netfiles.controller;

import baiqitun.netfiles.entity.SysDirectory;
import baiqitun.netfiles.service.SysDirectoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SysDirectoryController {
    @Autowired
    private SysDirectoryService sysDirectoryService;

    @GetMapping("/{id}")
    public SysDirectory get(@PathVariable("id") String id){
        return sysDirectoryService.dir(id);
    }
}
